Issue #2348029 by czigor: Fix for Only variables should be passed by reference in apps_retrieve_app_image