width and height methods for image processing