added basic image functions