I'm going to be adding more functionality to this, such as rotation (90 degree increments), mirroring, bounding box selection, and padding. I just got it working and was extremely excited to share it...! For everyone in the replies, thank you so much for the enthusiasm!