added redpost object/tests, and imgJson function