First Working Version, 20141229@Beijing. Auto img resize to be done.