update images.php
check if the imagick extension is loaded
add preview backend for text based files