Fixing addHTML crop math so images are not stretched or squished.  Fixes - #339