Function to rotate images around theirs center