Fixed chmod on image and session files