Fixed bug - resizing images caused them to become very distored over time because the image border was affecting the image resizing calculation, image borders are now use the 'outline' css property which does not affect width and height calculations.