added controller method for getImage
added controller method for getImage