I'd go for the approach @bantu suggested and use readImage - no need to load the data here