Fixed the OG image tag (wrong attr) and cleaned up the code to be more readable.