added fix for uploading, download and deleting profile images with other improvements