implemented resizing sprites