implemented overlay in gallery
fixed photo overlay