code to create pictures