Opens and converts image to pixels