scaling by width/height was completely incorrect (I think I introduced this) and will create a stretched image.  Should the constant be 256?