Some terminal emulators ( like st) , doesn't interpet the newlines (\n). So added explicit echo statements in each place.
Having a progress-bar while curl downloads image is suitable on slow internet so the user knows what's going instead of staring on an unresponsive terminal.
Moved the temp image to /tmp directory and removed the rm command. This is to avoid redundancy.The image is available until a new request or shutdown so user can have a second look.