Make images deletable in upload dialog