working on wordpress image handling