Add resizing image capability for smoother animation