adjusted time period in which is was probably written
small refactorings
moved image writing code to a new method