image processing: small fixes