Fixed image upload and testing environment