Shouldn't these be in the range [0, 320] x [0, 480]?  I'm not sure where the values you're using are coming from.

These should also be configurable, but factoring them out into symbolic variables is fine for now.