added img change based on direction