Fixed image uploader for pre WP 3.5 install

Signed-off-by: Elliot Condon <e@elliotcondon.com>