Add sub image rendering system

Fixes all camera management and includes an sub image selection system
which now lets you render parts of a texture on the screen.