Change confusing variable name bits_per_row to bytes_per_row