upload_capimg() is defined after img#capimg-preview-img is loaded
Merge branch 'capimg-preview-load' into dev