Not sure about error

tried switching it so it checks the png image for pixels instead still
getting error maybe u can figure it out now that its more understandable