-- started overhauling PrettyPhoto