Read images via resource function