Fixed image upload issue