changed how accessing image