adding uploading images to code but it's still bugy