background image loading and MAX_COL, MAX_ROW set from pixel count