using bounds to substitute the image size