Thank you for your reply. Last night I figured out this and implemented Harmony remote using picture-elements.
Here is the post.