added uploadimage function have test though