now with more accurate red value positions so image class no longer breaks