removed resolved commentaries
adapted code to new wordpress image editing functions