Some clean ups around photo resizing