Changed the getImg to return an object