More functions for getting data from an image