* save canvas before resize and paint it back after resize this fixes #64