upload image
bug fixing