Adding helper methods to ImageDAO