Updated texture extending

Fixed up texture extending, and added a simple and primitive 24-bit BMP
handler in the examples folder.