Finished subroutine to determine how image is spliced