Add image format check