Your question makes it seem like you are using relative URLs– “I used the path for the images like this: images/image.jpg …”
Don’t use relative URLs in WordPress. Relative paths are not reliable, except in stylesheets. They do work in stylesheets.
Use functions like admin_url
and these other related functions.