Make the image continuously resize back and forth in both cases

Change-Id: Ia543e5355c8d6a7712bf6f10c989945ff830627d