nuke unused code, photo resize