adding resized image to the dir