add canvas backgroud and resize images