Add function to retrieve sizes for XfdashboardImageContent