added helper function to retrieve image types