if (!filter_var($imageObject->id, FILTER_VALIDATE_INT)) {
            throw new Exception("The supplied image appears to be invalid...");
        }