set cursor appropriately on imgs