changed scaled image rule to only punish if the difference is larger than x