Implemented auxiliary methods for calculating pixel margins of bitmap row data for various pixel sizes