franky adds code to blit a section of a buffer onto another. also adds some code to make sure that we are not blitting past the buffer