Changed methods name of isImage to isBinaryResource, added few binary content mime types, fixed file closing issues