Validate jpeg photos