adding the ability to change width and height
update to the image size function