validation comp as a JPEG