Added image action and loop