improved camera behaviour and fixed resize problem.