upload images, animation not working