fixed bug which made it fail in Firefox

Checked source and destination widths and heights for zero when drawing
a textured rect on the canvas.   Chrome is ok with that, firefox is not.