tweaks in photoscripts