comit image scale and get image gallery