Fix reset and resize-check in image-plugin