CHANGED:applied the image file uploading functions;