moved flask-images call to init