do not use intermediate image, also just pad image by keeping the last value
Authored by: rmottola 2015-09-13
Parent: [r457]
Child: [r459]