fixed bug with non-converted float canvas dimensions