Update image.class.js

Fixed rendering of borders and svg transformation