Now the flask image generator is working and displaying correctly