removed unneeded comments, added generator for images