added overlay on click, resize and append image to overlay