further separated image uploading code, will probably gemify it
updated views to show newly uploaded images