Updated method of checking if page is type "image/gif".