New function to fetch image information. (Will be used in the addons at a later time)