add upload flash image funciton