Script for determining photo importance