bug fixes. it's successfully generating images now