login.php: fixed header location
logout.php: fixed header location
style.css: removed now useless part of the code
index.php: rewritten resize script(with it also fixed the selectable images in create.php)