move flask-images call to init