Implemented "imageinfo" twig function. Fixes #710