Validate image resource