[ticket/11148] Explicitly call get_mimetype() to guess mimetype

This is now done instead of using a "hidden" call to guess the mimetype
in the is_image() method of the filespec class.

PHPBB3-11148