Optimized drawRaster and started work on bilinear filtering