Adding validation into image field: wp_prepare_attachment_for_js

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