Better database connection detection and CSS for Images.