added initial image api (currently having problems with installing ssl lib on my mac)