Fix cropping of canvas for float sized elements