use images with same widht height
fix function parameters