upload image on the last controller in compact scenario