check image format