getting image size -> more secure