Bugs fixed and added bilinear image size support.
Signed-off-by: Zhou Chang <achang.zhou@gmail.com>