Fixed session and default image bugs