Improved docstring for get_image method and added image size validation