Add image validation