Set shape in different file formats