lua rocklib_img optimize functions with multiple checkint calls

Uses int arrays and calls luaL_checkint in a loop

Change-Id: Ib73dab886f018c787bd995f64d990981d194069f
2 files changed