redone resizing, add texture selector and bounding box