added a GPU resizing layer + some fixes