updated resizing. fine-tuned transparent palette