flask-images working!!!

add a few changes to work around Apache rewrite rules