changing pattern for creating pictures