fixed validator errors for images