Gallery image uploading bug fixed