Do not create a BufferedImage with a 0 dimension

Use 1 instead of 0 when asked to create a BufferedImage with width or
height equal to 0, as using 0 triggers a IllegalArgumentException.

Bug: 146235522
Test: N/A
Change-Id: I30b7b0dbc1b7143441b3389818d0789cf804f2d9
(cherry picked from commit b2b70068647a2fc02302ff99f07a5da1308ae956)
1 file changed