fixed error page and now displays image after uploading