fix up type checking in result image size setter