Implement simple img() function