add new function isImage