prep image uplaod