Putting image size in variable