fixed image size assertion