Added funcionality to draw custom size image