convert to jpg and db_stats page