changes for cardjs svg drawing