Major bug fix on drawing image in previous commit: 'New stable version with slices merged and drawing horizontal lines'

Signed-off-by: Eduardo L. Francisco <eduardolf85@gmail.com>
Major bug fix on drawing image in previous commit: 'New stable version with slices merged and drawing horizontal lines'

Signed-off-by: Eduardo L. Francisco <eduardolf85@gmail.com>