added scalar manipulation and operation with images
bug fixing