Only apply scaling rule if image size is greater than document size