Clean up drawing in different file formats