Master system support

Also, fix a possible crasher if is the emulator screen rect ever returns 0