Changes for uploading and viewing images