Posts API: Add method to add images.

Remove the old method that involved using a try ->
except pattern.

Eventually, this method will be replaced with the
imminent images table.