image jpeg format upload & rename handling