Fixed images quality when drawn in canvas