`if (null === $rawImage->getMimeType()) {`