Fixed bug when sending images from grid view